package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectSqkpMapper;
import com.ruoyi.gcgl.domain.GcProjectSqkp;
import com.ruoyi.gcgl.service.IGcProjectSqkpService;
import com.ruoyi.common.core.text.Convert;

/**
 * 申请开票Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-11
 */
@Service
public class GcProjectSqkpServiceImpl implements IGcProjectSqkpService 
{
    @Autowired
    private GcProjectSqkpMapper gcProjectSqkpMapper;

    /**
     * 查询申请开票
     * 
     * @param id 申请开票主键
     * @return 申请开票
     */
    @Override
    public GcProjectSqkp selectGcProjectSqkpById(Long id)
    {
        return gcProjectSqkpMapper.selectGcProjectSqkpById(id);
    }

    /**
     * 查询申请开票列表
     * 
     * @param gcProjectSqkp 申请开票
     * @return 申请开票
     */
    @Override
    public List<GcProjectSqkp> selectGcProjectSqkpList(GcProjectSqkp gcProjectSqkp)
    {
        return gcProjectSqkpMapper.selectGcProjectSqkpList(gcProjectSqkp);
    }

    /**
     * 新增申请开票
     * 
     * @param gcProjectSqkp 申请开票
     * @return 结果
     */
    @Override
    public int insertGcProjectSqkp(GcProjectSqkp gcProjectSqkp)
    {
        return gcProjectSqkpMapper.insertGcProjectSqkp(gcProjectSqkp);
    }

    /**
     * 修改申请开票
     * 
     * @param gcProjectSqkp 申请开票
     * @return 结果
     */
    @Override
    public int updateGcProjectSqkp(GcProjectSqkp gcProjectSqkp)
    {
        return gcProjectSqkpMapper.updateGcProjectSqkp(gcProjectSqkp);
    }

    /**
     * 批量删除申请开票
     * 
     * @param ids 需要删除的申请开票主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSqkpByIds(String ids)
    {
        return gcProjectSqkpMapper.deleteGcProjectSqkpByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除申请开票信息
     * 
     * @param id 申请开票主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSqkpById(Long id)
    {
        return gcProjectSqkpMapper.deleteGcProjectSqkpById(id);
    }
}
